package com.google.gwt.sample.dynatablerf.server.domain;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.NamedQuery;

@Entity
@NamedQuery(name = ODI.ODI_PESQUISAR, query = "SELECT t FROM ODI t WHERE "
		+ "(:id is null or t.id = :id) "
		+ "AND (:codigo is null or t.codigo = :codigo)")
public class ODI extends AbstractEntity implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public static final String ODI_PESQUISAR = "ODI_Pesquisar";

	private String codigo;

	private String descricao;

	public ODI() {
		super();
	}

	public ODI(String codigo, String descricao) {
		this();
		this.codigo = codigo;
		this.descricao = descricao;
	}

	public String getCodigo() {
		return codigo;
	}

	public void setCodigo(String codigo) {
		this.codigo = codigo;
	}

	public String getDescricao() {
		return descricao;
	}

	public void setDescricao(String descricao) {
		this.descricao = descricao;
	}
}
